Conditions | 7 |
Paths | 19 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | Mivhak.component('live-preview', { |
||
7 | renderHTML: function() { |
||
8 | var html = '<html>', |
||
9 | head = '<head>', |
||
10 | body = '<body>'; |
||
11 | |||
12 | head += '<meta http-equiv="content-type" content="text/html; charset=UTF-8">'; |
||
13 | head += '<meta name="robots" content="noindex, nofollow">'; |
||
14 | head += '<meta name="googlebot" content="noindex, nofollow">'; |
||
15 | |||
16 | for(var i = 0; i < this.resources.count(); i++) |
||
17 | { |
||
18 | var source = this.resources.get(i); |
||
19 | if('markup' === source.runAs) body += source.content; |
||
20 | if('style' === source.runAs) head += this.createStyle(source.content, source.visible ? false : source.source); |
||
21 | if('script' === source.runAs) head += this.createScript(source.content, source.visible ? false : source.source); |
||
22 | } |
||
23 | |||
24 | html += head+'</head>'+body+'</body></html>'; |
||
25 | |||
26 | return html; |
||
27 | }, |
||
28 | createScript: function(content,src) { |
||
52 | }); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.